{% init file_type = "group_list" %}
{% init ungrouped_count = 0 %}
{% set fixed_books = [
    ("我的置顶", "/note/sticky"),
    ("最近更新", "/note/recent_edit"),
    ("智能分类", "/note/types"),
]%}

{% include common/mod_notice.html %}

<div class="grid-row card book-list">
    <h3>{{T("NoteBook")}}
        <div class="float-right">
            <a class="prompt-btn inline-btn" message="新建笔记本" 
                        action="/note/add?type=group&name=">+笔记本</a>
            <a class="inline-btn" href="/note/add">+笔记</a>
        </div>
    </h3>

    {% for name, url in fixed_books %}
        <a href="{{url}}" class="fixed-book">
            <div class="book-item fixed-book-item">
                <img src="/static/image/folder.gif"/>
                {{name}}
                <span class="book-size">⇨</span>
            </div>
        </a>
    {% end %}

    {% for item in files %}
        <a href="{{item.url}}">
        <div class="book-item">
            <img src="/static/image/folder.gif"/>
            {% if item.priority > 0 %}[置顶]{% end %}
            {{item.name}}
            <span style="color: black;">({{item.size}})</span>
            <span class="book-size">{{format_date(item.mtime).replace('-', '/')}}</span>
        </div>
        </a>
    {% end %}
</div>
